projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffd517c
)
acccellabel: Use right state when querying font
author
Benjamin Otte
<otte@redhat.com>
Fri, 6 Nov 2015 15:34:09 +0000
(16:34 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 6 Nov 2015 15:37:40 +0000
(16:37 +0100)
This was causing permanent invalidations otherwise because drawing
causes the state of the accel node to change.
gtk/gtkaccellabel.c
patch
|
blob
|
history
diff --git
a/gtk/gtkaccellabel.c
b/gtk/gtkaccellabel.c
index 5b03a6819c3cfd722f4197cc0cb59141f6d9fb2a..e4bbdd0efb335880dd9d4917a872d10ae7e20950 100644
(file)
--- a/
gtk/gtkaccellabel.c
+++ b/
gtk/gtkaccellabel.c
@@
-412,7
+412,7
@@
gtk_accel_label_get_accel_layout (GtkAccelLabel *accel_label)
if (!attrs)
attrs = pango_attr_list_new ();
gtk_style_context_get (context,
- gtk_
widget_get_state_flags (widge
t),
+ gtk_
style_context_get_state (contex
t),
"font", &font_desc,
NULL);
pango_attr_list_change (attrs, pango_attr_font_desc_new (font_desc));